package com.neuedu.corejava.ch5.practise;

public class Demo18 {

	public static void getx(int x){
		x=3*x;
	}
	public static void gety(int[] y){
		y[0]=3*y[0];
	}
	
	public static void main(String[] args) {
		int x = 10;
		System.out.println("x调用方法前：" + x); //10
		
		getx(x);
		System.out.println("x调用方法后：" + x); //10
		
		int[] y = { 10 };
		System.out.println("y调用方法前：" + y[0]); //10
		
		gety(y);
		System.out.println("y调用方法后：" + y[0]); //30

	}

}
